<template>
  <div class="dashboard-container">
    <!-- 头部区域 -->
    <div class="card_header">
      <span>数据</span><i class="el-icon-info"></i>
    </div>
    <div class="card_cont">
      <span>$12346</span>
    </div>
    <div class="card_charts">
      <slot name="charts">这是charts插槽</slot>
    </div>
    <div class="card_footer">
      <slot name="footer">这是 footer 插槽</slot>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
.card_header{
  display: flex;
  justify-content: space-between;
  color: #999;
}
.card_cont{
  font-size: 30px;
  margin: 10px 0;
}
.card_charts{
  height: 50px;
  line-height: 50px;
  font-size: 14px;
  /* padding: 10px 0; */
}
.card_footer{
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 5px;
  font-size: 14px;
}
</style>